package org.alternativedev.wo42.gui.menu.menuoptions;

import org.alternativedev.wo42.Game;
import org.alternativedev.wo42.gui.menu.MenuOption;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;

public class MenuOptionRestart extends MenuOption {

	public MenuOptionRestart(GameContainer container)
			throws SlickException {
		super(container, new Image("data/menu/buttons/tryAgain_1.png"),
				new Image("data/menu/buttons/tryAgain_2.png"));
	}

	@Override
	public void onClick(Game game, GameContainer gContainer) throws SlickException {
		game.reset();
	}

}
